export interface tableHeader {
  [key: string]: string; // 索引签名，允许任意字符串类型的属性
}
export const purTableHeader: tableHeader = {
  transactionReqId: "事务处理请求id", // 未放出
  transactionType: "事务处理类型",
  transactionProcessTime: "事务处理时间",
  sourceCode: "来源",
  organizationCode: "库房组织",
  subInventoryCode: "子库房",
  materialCode: "物料代码",
  materialDesc: "物料描述",
  amount: "数量",
  materialUnit: "物料单位",
  unitPrice: "采购单价",
  poOrderNumber: "采购订单号",
  createBy: "创建人", // 放出
  businessId: "业务ID", // 未放出
};
export const journalTableHeader: tableHeader = {
  account: "账户",
  accountDesc: "账户描述",
  accountingType: "会计类型",
  accountingTypeDesc: "会计类型",
  amount: "数量",
  businessId: "业务ID",
  journalType: "",
  materialCode: "物料编码",
  materialDesc: "物料描述",
  org: "组织",
  totalPrice: "事务处理值",
  transactionProcessTime: "事务处理时间",
  transactionType: "事务处理类型",
  unit: "单位",
  unitCost: "基础价格",
  totalCost: "金额",
};

export const purTableProps = [
  "transactionType",
  "sourceCode",
  "organizationCode",
  "subInventoryCode",
  "materialCode",
  "materialDesc",
  "amount",
  "materialUnit",
  "unitPrice",
  "poOrderNumber",
  "transactionProcessTime",
  "createBy",
];
// export const engThInit = Object.keys(purTableHeader);
export const journalTableProps = [
  "transactionProcessTime",
  "account",
  "accountDesc",
  "materialCode",
  "materialDesc",
  "unit",
  "amount",
  "unitCost",
  "totalPrice",
  "accountingTypeDesc",
];
